package com.glsc.ngateway.common.base.domainmapper;


import com.glsc.ngateway.common.base.domain.mysql.gateway.other.TradeSeatFees;
import com.glsc.ngateway.common.api.platform.dto.other.TradeSeatFeesDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author liwei
 *
 */
@Mapper(componentModel = "spring")
public interface TradeSeatFeesMapper {

    TradeSeatFeesMapper INSTANCE = Mappers.getMapper(TradeSeatFeesMapper.class);


    @Mapping(target = "flowSpeedWeight", ignore = true)
    @Mapping(target = "annualFees", ignore = true)
    @Mapping(target = "useFees", ignore = true)
    @Mapping(target = "flowFees", ignore = true)
    @Mapping(target = "flowSpeedFees", ignore = true)
    TradeSeatFeesDto domain2dto(TradeSeatFees domain);

    List<TradeSeatFeesDto> domain2dto(List<TradeSeatFees> domain);

    @Mapping(target = "opOperator", ignore = true)
    @Mapping(target = "opOperatorName", ignore = true)
    @Mapping(target = "opTime", ignore = true)
    @Mapping(target = "status", ignore = true)
    TradeSeatFees dto2domain(TradeSeatFeesDto dto);

    List<TradeSeatFees> dto2domain(List<TradeSeatFeesDto> dto);

}



